package com.DreamForce.Demo.common.tools;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class GetPro {

	public String getPro(String filename,String key)
	{
		String returnvalue = null;
			try {
				FileInputStream fis = new FileInputStream("./config/"+filename);
				Properties pro = new Properties();
				pro.load(fis);
				returnvalue = pro.getProperty(key);
			} catch (IOException e) {
				e.printStackTrace();
			}
			
		return returnvalue;
		
	}
}
